Skip to content

Conversation

@ariesjia
Copy link
Contributor

No description provided.

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is AWESOME! Just a few comments.

expect(queryByTestId('count').textContent).toBe("10");
})

test('should add count when click add button text', async () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this test need to be async?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this async is unnecessary, I removed it

import TestTag from './test.tag'

afterEach(() => {
cleanup()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feature is awesome !
I don't pay attention to it when I use react-testing-library. It's easy to use.
I add this feature.

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic 💯

@kentcdodds kentcdodds merged commit 4b6379d into testing-library:master Oct 12, 2019
@kentcdodds
Copy link
Member

@all-contributors please add @ariesjia for docs

@allcontributors
Copy link
Contributor

@kentcdodds

I've put up a pull request to add @ariesjia! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants